<?php
require_once __DIR__ . '/lib/BYGetTokenClient.php';
require_once __DIR__ . '/lib/EncryptUtil.php';



//获取token
$client_id = "AppKey";//请申请的应用appKey
$client_secret = "AppSecret";//请填入申请的appSecret

$token = new BYGetTokenClient( $client_id , $client_secret );
$grant_type = 'platform';
$company_id = 1;

echo '<pre>';
var_dump(
    $token->get_token( $grant_type , $company_id )
);
echo '</pre>';

